home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekkan Dennou Club 145
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin
/
tools
/
sharp
/
sxwork1i.lzh
/
SXWORK1.XDF
/
INCLUDE
/
DIALOG.H
< prev
next >
Wrap
Text File
|
1994-02-20
|
3KB
|
134 lines
/*
* dialog.h X68k SX_SYSTEM ver 2.01 Copyright 1994 SHARP/First Class Technology
*/
#ifndef __DIALOG_H
#define __DIALOG_H
#ifndef __SXDEF2_H
#include <sxdef2.h>
#endif
#ifndef __WINDOW_H
#include <window.h>
#endif
#ifdef FORWORD
#define __PROTO_TYPE
#endif
#ifdef __STDC__
#define __PROTO_TYPE
#endif
typedef struct DItem DItem;
typedef struct DIList DIList;
typedef struct DLOG DLOG;
typedef struct DIList DITL;
/*
* ダイアログマン (Dialog Man)
*/
#define D_USER 0x00
#define D_CHRBTN 0x04
#define D_RADBTN 0x05
#define D_CHKBOX 0x06
#define D_RSCITM 0x07
#define D_STCTXT 0x08
#define D_EDTTXT 0x10
#define D_ICNITM 0x20
#define D_PICITM 0x40
#define D_DISABL 0x80
enum ErrorType {
D_CONFIRM = 1,
D_YESNO = 4,
D_SAVE,
D_EXEC,
D_CONT
};
#define D_YELLOW 0
#define D_RED (1 << 8)
struct Dialog {
Window window;
DIList **itemList;
TEdit **tEdit;
short edit;
short eOpen;
short rsv;
};
struct DItem {
Handle item;
Rect bounds;
unsigned char type;
unsigned char size;
unsigned char data[_VARLEN]; /* ここは可変長データの先頭 */
};
struct DIList {
short number;
DItem items[_VARLEN]; /* ここは可変長データの先頭 */
};
struct DLOG {
Rect bounds;
short defID;
short visible;
short close;
long taskID;
short itemID;
LASCII title;
};
#ifdef __PROTO_TYPE
void DMInit(void);
void DMFontSet(int);
Dialog *DMOpen(Dialog *, Rect *, const _LASCII, BOOLEAN, int, Window *, BOOLEAN, long, _Handle);
Dialog *DMRefer(int, Dialog *, Window *);
int DMClose(Dialog *);
int DMDispose(Dialog *);
int DMControl(int (*)(Dialog *, Event *));
int DMDraw(Dialog *);
int DIGet(Dialog *, int, short *, Handle *, Rect *);
int DISet(Dialog *, int, short, Handle, Rect *);
int DITGet(short, Handle, _LASCII);
int DITSet(short, Handle, const _LASCII);
int DITSelect(Dialog *, int, long, long);
int DIUpdate(Dialog *, Region **);
int DMBeep(int);
int DIHide(Dialog *, int);
int DIShow(Dialog *, int);
int DMError(int, const char *);
int DMWaitOpen(void);
int DMWaitClose(void);
int DMWaitWhile(void);
#undef __PROTO_TYPE
#else
void DMInit();
void DMFontSet();
Dialog *DMOpen();
Dialog *DMRefer();
int DMClose();
int DMDispose();
int DMControl();
int DMDraw();
int DIGet();
int DISet();
int DITGet();
int DITSet();
int DITSelect();
int DIUpdate();
int DMBeep();
int DIHide();
int DIShow();
int DMError();
int DMWaitOpen();
int DMWaitClose();
int DMWaitWhile();
#endif __PROTO_TYPE
#endif __DIALOG_H